package com.zhs.gccs.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public abstract class BaseView extends FrameLayout {
    public Context context;
    public BaseView(@NonNull Context context) {
        super(context);
        this.context = context;
        init(context, null,0);
    }

    public BaseView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
        init(context, attrs,0);
    }

    public BaseView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context = context;
        init(context, attrs,defStyleAttr);
    }
    public abstract void init(Context context, AttributeSet attrs, int defStyleAttr);

}
